package org.osito.jbehave.junit;

import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;

class DummyRunner<T> extends BlockJUnit4ClassRunner {

	private final T test;

	public DummyRunner(T test) throws InitializationError {
		super(test.getClass());
		this.test = test;
	}

	public T getTest() {
		return test;
	}

	@Override
	protected Object createTest() throws Exception {
		return test;
	}

}
